/**
 * encryption.java
 * com.ebook.jni
 * Copyright (c) 2013, 公司版权所有.
*/

package com.ebook.jni;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * 加密工具类
 * @author    潘吉友
 * @Date	 2013-5-14 	 
 */
public class encryption {
	
	private static Log logger = LogFactory.getLog(encryption.class);

	static
	{
		try {
			System.loadLibrary("book_encrypt");
		} catch (UnsatisfiedLinkError e) {
			logger.error("Cannot load book_encrypt library", e);
		}
		
	}

	
	public native static int book_encrypt(byte[] src_path,byte[] des_path,byte[] key,int type,byte[] prikey,int encrypt_type,byte[] version);

}

